package com.neuedu.controller.inspection;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.RestBean;
import com.neuedu.service.inspection.InspectionInputService;

/**
 * 检查管理：检查结果录入
 */
@RestController
public class InspectionInputController {
//	@Autowired
	private InspectionInputService inspectionInputSerivce;

	@RequestMapping("getFinishInspection")
	public RestBean getFinishInspection(String caseNumber, String realName, Integer nowPageNumber, Integer pageSize) {
		return inspectionInputSerivce.getFinishInspection(caseNumber, realName, nowPageNumber, pageSize);
	}

	@RequestMapping("getFinishInspectionByRegistid")
	public List<Map<String, Object>> getFinishInspectionByRegistid(String id) {
		return inspectionInputSerivce.getFinishInspectionByRegistid(id);
	}

	@RequestMapping("updateInspectionInput")
	public RestBean updateInspectionInput(String id, String employeeId, String inspectionResult) {
		return inspectionInputSerivce.updateInspectionInput(id, employeeId, inspectionResult);
	}
}
